let hexLiteral: number = 0xf00d;
console.log(hexLiteral)

let binaryLiteral: number = 0b1010;
console.log(binaryLiteral)

let name: string = `Gene`;
let age: number = 37;
let sentence: string = `Hello, my name is ${name}`;
console.log(sentence);

let list: Array<number> = [1, 2, 3];
console.log(list);

enum Color {Red, Green, Blue}

let c: Color = Color.Green;
console.log(c);

let b: { name: string, age?: number };
b = {name: 'zhang'};
console.log(b)

// 任意类型的属性值
let d: { name: string, [str_name: string]: any };
d = {name: 'zhang123'};
console.log(d)

let e: (a: number, b: number, c: number) => number;

enum Gender{
    MALE,
    FEMALE
}

let male=Gender.MALE
let female=Gender.FEMALE
console.log(female)
console.log(male)

type myType=1|2|3|4
let m:myType;
m=4
console.log(m)